package com.soundplus.app.shp04.Activity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.soundplus.app.shp04.BuildConfig;
import com.example.sppmode.Common.AllParam;
import com.soundplus.app.shp04.R;
import com.soundplus.app.shp04.databinding.ActivityAppinfoBinding;

public class AppInfoActivity extends AppCompatActivity {

    private Context context;
    private ActivityAppinfoBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        context = this;
        binding = ActivityAppinfoBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        initView();
    }

    private void initView() {
        binding.tvAppVersion.setText(getString(R.string.app_curr_ver) + " V" + BuildConfig.VERSION_NAME);

        if(AllParam.showLogo) {
            binding.tvCompanyInfo.setVisibility(View.VISIBLE);
            binding.ivAppInfo.setVisibility(View.VISIBLE);
        } else {
            binding.tvCompanyInfo.setVisibility(View.INVISIBLE);
            binding.ivAppInfo.setVisibility(View.INVISIBLE);
        }
    }
}

